import 'package:json_annotation/json_annotation.dart';

part 'guide_model.g.dart';

@JsonSerializable()
class GuideModel {
  bool allowShare;
  String id;
  String title;
  String description;
  String publishDate;
  String content;
  List<String> tags;
  num views;
  num likes;
  num shares;

  GuideModel({this.allowShare, this.id, this.title, this.description, this.publishDate, this.content, this.tags, this.views, this.likes, this.shares});

  factory GuideModel.fromJson(Map<String, dynamic> json) => _$GuideModelFromJson(json);

  Map<String, dynamic> toJson() => _$GuideModelToJson(this);
}

